6b4aa7
@@ -36,7 +36,7 @@
 
   public boolean closeConnection() {
 
-    if (info.getConnection() == null) {
+    if (info == null || info.getConnection() == null) {
       return true;
     }
     try {
@@ -82,7 +82,7 @@
private String getCreate() {
 
   public boolean publishStat(String queryId, Map<String, String> stats,
     Configuration conf) {
-    if (info.getConnection() == null) {
+    if (info == null || info.getConnection() == null) {
       if(!initialize(conf)) {
         return false;
       }
